<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>临期报损</title>
    <link href="/page/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
    <link href="/page/dist/css/bootstrap-dialog.min.css" rel="stylesheet">
    <link href="/page/dist/css/bootstrap-select.min.css" rel="stylesheet">
    <link href="/page/dist/css/bootstrap-table.min.css" rel="stylesheet">
    <link href="/page/build/css/index.css" rel="stylesheet"/>
    <link href="/page/css/index.css" rel="stylesheet"/>
    <link rel="shortcut icon" href="#"/>
    <script type="text/javascript" src="/page/dist/js/jquery-3.6.0.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/bootstrap-select.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/i18n/defaults-zh_CN.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/bootstrap-dialog.min.js"></script>
    <script type="text/javascript" src="/page/js/socket/socket.io.js"></script>
    <script type="module" src="/page/js/cookie/js.cookie-2.2.1.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/bootstrap-table.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/i18n/bootstrap-table-zh-CN.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/jquery.serializejson.min.js"></script>
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <div class="form-inline">
            <div class="col-md-7">
                <h4 style="text-align: center;" class="merger-title">
                    <strong>
                        <span>临期商品：</span>
                    </strong>
                </h4>
                <div class="table table-responsive" id="table-sort-id">
                    <table class="table table-responsive" id="merge-table-list"
                           style="text-align: center;">
                    </table>
                </div>
            </div>
            <div class="col-md-5">
                <h4 style="text-align: center;" class="merger-title">
                    <strong>
                        <span>临期商品货箱：</span>
                        <span id="merge-box-code"></span>
                    </strong>
                </h4>
                <div class="table table-responsive" id="table-responsive-id">
                    <table class="table" id="merge-box-list" style="text-align: center;">
                    </table>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="modal fade" id="frm-lose-model" tabindex="-1" role="dialog" aria-labelledby="frm-lose-label">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <!--<div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                aria-hidden="true">×</span></button>
                        <h4 class="modal-title" id="frm-lose-label">原料报损</h4>
                    </div>
                    <div class="modal-body">
                        <form id="form-frm-lose">
                            <div class="form-group">
                                <label for="frm-lose-select" class="control-label">报损原料：</label>
                                <select id="frm-lose-select" class="selectpicker select-frm-info form-control"
                                        data-live-search="true">
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="frm-lose-weight" class="control-label">报损重量:</label>
                                <input type="text" class="form-control" id="frm-lose-weight" name="weight"/>
                            </div>
                            <input type="hidden" name="goodsBoxDetailId" id="goods-detail-id"/>
                            <input type="hidden" name="boxCode" id="from-lose-goods-detail-box-code"/>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal"
                                onclick="frmLoseClick(false)">取消
                        </button>
                        <button type="button" class="btn btn-primary" onclick="frmLoseClick(true)">报损</button>
                    </div>-->
                </div>
            </div>
        </div>
    </div>


    <form class="hidden" id="form-param">
        <input type="hidden" name="upOrDownPolicy[boxCode]" id="ware-box-code"/>
        <input type="hidden" name="upOrDownPolicy[boxType]" th:value="1" id="box-type"/>
        <input type="hidden" name="upOrDownPolicy[clientId]" th:value="${clientId}" id="client-id"/>
        <input type="hidden" name="upOrDownPolicy[consoleId]" th:value="0"/>
        <input type="hidden" name="upOrDownPolicy[downToLocation]" th:value="1"/>
        <input type="hidden" name="upOrDownPolicy[totalWeight]" th:value="0" id="total-weight"/>
        <input type="hidden" name="upOrDownPolicy[sortWeight]" th:value="0" id="sort-act-weight"/>
        <input type="hidden" name="upOrDownPolicy[operationType]" th:value="5" id="operation-type"/>
        <input type="hidden" name="goodsBox[boxCode]" id="goods-box-code"/>
        <input type="hidden" name="goodsBox[inspectType]" th:value="1"/>
        <input type="hidden" name="goodsBox[warehouseId]" th:value="1"/>
        <!--<input type="hidden" name="goodsBox[temperatureZoneCode]" th:value="101" id="temperatureZoneCode"/>-->
        <input type="hidden" name="outboundAndEntry" th:value="true" id="outboundAndEntry"/>
    </form>
</div>
<footer class="navbar-fixed-bottom" style="background: rgba(0,0,0,.7)">
    <div class="container">
        <div class="col-md-12">
            <div class="form-inline" style="text-align: center;">
                <div class="form-group">
                    <button class="btn btn-primary" id="merge-box-up" data-toggle="tooltip" data-placement="top"
                            onclick="mergeBoxUp()" style="display: none;"
                            title="完成入库">完成入库
                    </button>
                </div>
                <!--<div class="form-group" style="margin-left: 80px;">
                    <button class="btn btn-primary" id="sort-box-out" onclick="entry(false)" data-toggle="tooltip" data-placement="top" title="原料箱材料全部分拣完时">空箱出库
                    </button>
                </div>-->
                <div class="form-group" style="margin-left: 50px;">
                    <button class="btn btn-primary" id="sort-box-up-force" onclick="entryForce()" data-toggle="tooltip"
                            data-placement="top" style="display: none;" title="货箱重量与称重重量有偏差时">强制入库
                    </button>
                </div>

                <!-- <button class="btn btn-primary pull-right" id="sort-demotion" style="margin-left: 10px;" onclick="demotion()" data-toggle="tooltip" data-placement="top" title="原料与当前等级不符时">原料降级
                 </button>-->
                <!--<div class="form-group" style="margin-left: 50px;">
                    <button class="btn btn-primary pull-right" id="sort-frmLoss" style="margin-left: 10px;"
                            onclick="frmLose()" data-toggle="tooltip" data-placement="top" title="原料出现损坏时">原料报损
                    </button>
                </div>-->
                <!--<div class="form-group" style="margin-left: 50px;">
                    <button class="btn btn-primary pull-right" id="merge-btn" style="display: none;" onclick="merge(true,0)">下架货箱
                    </button>
                </div>-->
            </div>
        </div>
    </div>
</footer>
</body>
<script type="text/javascript" src="/page/js/common.js"></script>
<script type="text/javascript" src="/page/js/wms/frmloss.js"></script>
<script type="text/javascript" src="/page/build/index.js"></script>
<script type="text/javascript" src="/page/js/socket.con.js"></script>
</html>